home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-25 | 1.3 KB | 44 lines | [TEXT/CWIE] |
- // ==================================================
- // CAppleGuideFile.h
- // Copyright (C) 1997 Mizutori Tetsuya
- // March 21, 1997, April 9, 1997
- // ==================================================
- // All documents are pretty-printed in 10-point Geneva font.
-
- #pragma once
-
- #include <AppleGuide.h>
-
-
- class CAppleGuideFile {
-
- public:
-
- CAppleGuideFile();
- CAppleGuideFile( OSType inCreatorType );
- CAppleGuideFile( ConstStr255Param inFileName );
- virtual ~CAppleGuideFile();
-
- // Check if Apple Guide is installed or not.
- static Boolean AppleGuideIsPresent( void );
-
- // Open the specified guide file located in the application's folder.
- virtual AGErr Open( void );
-
- protected:
-
- // Find a default guide file in the same folder where the application is located.
- // OSErr FindGuideFile( void );
- OSErr FindGuideFile( ConstStr255Param inFileName );
- OSErr FindGuideFile( OSType inAppCreatorType );
-
- private:
- Str63 mGuideFilename; // A particular Apple Guide file name
- Boolean mGotGuideFile; // true if mGuideFile is valid.
- FSSpec mGuideFileFSSpec; // A file spec of the guide file.
- OSType mGuideCreatorType; // An application creator type.
- AGRefNum mGuideFileRefNum; // A reference number of opened guide file.
- };
-
- // end of definitions
-